package com.treasure.web.command.event;

import org.jetbrains.annotations.NotNull;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;
import org.springframework.stereotype.Component;

/**
 * @author sunhongmin
 * @date 2023/10/21 10:25
 * @description
 */
@Component
public class EventPublisher implements ApplicationEventPublisherAware {
    public static ApplicationEventPublisher applicationEventPublisher;


    @Override
    public void setApplicationEventPublisher(@NotNull ApplicationEventPublisher applicationEventPublisher) {
        EventPublisher.applicationEventPublisher = applicationEventPublisher;
    }
}
